<template>
  <div class="jilu">
      <van-tabs @click="onClick">
        <van-tab title="当前资讯">
            <button>去找医生</button>
        </van-tab>
        <van-tab title="历史资讯">内容 2</van-tab>
      </van-tabs>
  </div>
</template>

<script>
import { Toast } from 'vant';

export default {
methods: {
    onClick(name, title) {
      Toast(title);
    },
  },
}
</script>

<style>
.jilu{
    width: 100%;
    height: 100%;
}
button{
    width: 30%;
    height: 40px;
    color: #fff;
    background: rgb(110, 205, 248);
    border-radius: 20px;
    border: none;
    margin: 30px 35%;
}
</style>